#include <iostream>
using namespace std;

class Top
{
private:
    
public:
    virtual ~Top();
};

class Left : virtual public Top
{
  public:
   void f(){}
};

class Right : virtual public Top
{
  public:
   void f(){}
};

class Bottom : public Right,public Left
{
  public:
   using Left::f();
};

